package com.glamour.hlcity.component.task.impl;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.glamour.hlcity.common.model.CommandDO;
import com.glamour.hlcity.common.util.ListUtil;
import com.glamour.hlcity.component.task.api.CmdManager;
import com.glamour.hlcity.component.task.model.Command;

public class CmdManagerImpl extends AbstractCmdCreateExecute implements CmdManager {

	@Override
	@Transactional
	public void updateStatusAndNextActDate(List<CommandDO> cmdList) {
		//更新下次执行时间以及状态
		for(CommandDO command:cmdList){
			cmdDoing(command, commandConfig(command.getType()));
		}

	}

	@Override
	public List<Command> createExecuteUnit() {
		return ListUtil.emptyList();
		//throw new UnsupportedOperationException("在该类中不支持createExecuteUnit()方法");
	}



}
